package com.hnust.service.impl;

import com.hnust.dao.PaperResultDao;
import com.hnust.domain.Class;
import com.hnust.domain.Student;
import com.hnust.domain.TestMajorAndGrade;
import com.hnust.service.PaperResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Yjx
 * @Data: 2021/12/11 19:50
 * @Version 1.0
 * @Project_Name: exam-master
 * @describe
 */
@Service
public class PaperResultServiceImpl implements PaperResultService {
    @Autowired
    PaperResultDao paperResultDao;

    @Override
    public List<TestMajorAndGrade> getMajor(String examId) {
        return paperResultDao.getMajor(examId);
    }

    @Override
    public String getMajorName(String test_majid) {
        return paperResultDao.getMajorName(test_majid);
    }

    @Override
    public List<Class> getClassId(String test_majid,String test_grade) {
        return paperResultDao.getClassId(test_majid,test_grade);
    }

    @Override
    public List<Student> getStudentByClassId(String classId) {
        return paperResultDao.getStudentByClassId(classId);
    }

    @Override
    public String getStudentGrade(String testid, String studentId) {
        return paperResultDao.getStudentGrade(testid,studentId);
    }

    @Override
    public String getTestName(String testid) {
        return paperResultDao.getTestName(testid);
    }
}
